package com.ruoyi.qynygl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.qynygl.mapper.TbQynyglYqsylMapper;
import com.ruoyi.qynygl.domain.TbQynyglYqsyl;
import com.ruoyi.qynygl.service.ITbQynyglYqsylService;

/**
 * 园区使用量Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-11
 */
@Service
public class TbQynyglYqsylServiceImpl implements ITbQynyglYqsylService 
{
    @Autowired
    private TbQynyglYqsylMapper tbQynyglYqsylMapper;

    /**
     * 查询园区使用量
     * 
     * @param id 园区使用量主键
     * @return 园区使用量
     */
    @Override
    public TbQynyglYqsyl selectTbQynyglYqsylById(Long id)
    {
        return tbQynyglYqsylMapper.selectTbQynyglYqsylById(id);
    }

    /**
     * 查询园区使用量列表
     * 
     * @param tbQynyglYqsyl 园区使用量
     * @return 园区使用量
     */
    @Override
    public List<TbQynyglYqsyl> selectTbQynyglYqsylList(TbQynyglYqsyl tbQynyglYqsyl)
    {
        return tbQynyglYqsylMapper.selectTbQynyglYqsylList(tbQynyglYqsyl);
    }

    /**
     * 新增园区使用量
     * 
     * @param tbQynyglYqsyl 园区使用量
     * @return 结果
     */
    @Override
    public int insertTbQynyglYqsyl(TbQynyglYqsyl tbQynyglYqsyl)
    {
        return tbQynyglYqsylMapper.insertTbQynyglYqsyl(tbQynyglYqsyl);
    }

    /**
     * 修改园区使用量
     * 
     * @param tbQynyglYqsyl 园区使用量
     * @return 结果
     */
    @Override
    public int updateTbQynyglYqsyl(TbQynyglYqsyl tbQynyglYqsyl)
    {
        return tbQynyglYqsylMapper.updateTbQynyglYqsyl(tbQynyglYqsyl);
    }

    /**
     * 批量删除园区使用量
     * 
     * @param ids 需要删除的园区使用量主键
     * @return 结果
     */
    @Override
    public int deleteTbQynyglYqsylByIds(Long[] ids)
    {
        return tbQynyglYqsylMapper.deleteTbQynyglYqsylByIds(ids);
    }

    /**
     * 删除园区使用量信息
     * 
     * @param id 园区使用量主键
     * @return 结果
     */
    @Override
    public int deleteTbQynyglYqsylById(Long id)
    {
        return tbQynyglYqsylMapper.deleteTbQynyglYqsylById(id);
    }
}
